package e_adapter.b_design_pattern;

/**
 * Created by wug on 2016/6/30 0030.
 */
public class NetTVBox {
    private String name ="网络机顶盒";
    Internet internet;

    public NetTVBox(Internet internet) {
        this.internet = internet;
    }

    public void signalSwitch() {
        System.out.println(name + "频道切换");
    }

    public AVLine signalChange() {
        internet.signalInput();
        System.out.println(name + "信号转换");
        return new AVLine("左声道", "右声道", "视频信号");
    }

}
